package org.iori.util.io;

/**
 * This exception occurs when transfer data between the ftp server and local.
 * 
 * @author zhang_jianbin
 * @history
 *         <p>
 *         2007-9-24 Created, Zhang Jianbin
 * 
 */
public class FtpTransferException extends Exception {
	private int replyCode;

	/**
	 * Constructs a FtpTransferException object
	 * 
	 * @param replyCode
	 *            The integer value of the reply code of the last FTP reply.
	 * @param message
	 *            the error message
	 */
	public FtpTransferException(int replyCode, String message) {
		super(message);
		this.replyCode = replyCode;
	}

	/**
	 * Returns the integer value of the reply code of the last FTP reply.
	 * 
	 * @return The integer value of the reply code of the last FTP reply.
	 * 
	 */
	public int getReplyCode() {
		return this.replyCode;
	}

}
